//
//  QXRoundRectView.h
//  Pods
//
//  Created by Qianxia on 2016/12/23.
//
//

#import <UIKit/UIKit.h>

IB_DESIGNABLE
@interface QXRoundRectView : UIView

///边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

///设置圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

@property (assign, nonatomic) IBInspectable BOOL masksToBounds;

@end


IB_DESIGNABLE
@interface QXCustomRoundRectView : UIButton

/// 圆角的位置
@property (assign, nonatomic) UIRectCorner roundingCorner;

/// 圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

/// 边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

/// 边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

/// 是否填充颜色
@property (assign, nonatomic) IBInspectable BOOL filled;

/// 填充颜色
@property (strong, nonatomic) IBInspectable UIColor *fillColor;


@end



IB_DESIGNABLE
@interface QXRoundRectButton : UIButton

/// 边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

/// 边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

/// 圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

/// 正常背景色
@property (strong, nonatomic) IBInspectable UIColor *normalBackgroundColor;

/// 高亮背景色
@property (strong, nonatomic) IBInspectable UIColor *highlightedBackgroundColor;

@end


IB_DESIGNABLE
@interface QXRoundRectControl : UIControl
///边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

///设置圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

@end

IB_DESIGNABLE
@interface QXRoundRectImageView : UIImageView
///边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

///设置圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

@end



IB_DESIGNABLE
@interface QXRoundRectTextView : UITextView
///边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

///设置圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

@end


IB_DESIGNABLE
///单选框
@interface QXSingleBox : UIView

///颜色
@property (strong, nonatomic) IBInspectable UIColor *color;
///间距
@property (assign, nonatomic) IBInspectable CGFloat spacing;
///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat lineWidth;

//是否选中
@property (assign, nonatomic) IBInspectable BOOL isSeleted;

@end

IB_DESIGNABLE
///单选框
@interface QXSingleColorBox : UIView

///颜色
@property (strong, nonatomic) IBInspectable UIColor *color;

/// 默认颜色 深灰色
@property (strong, nonatomic) IB_DESIGNABLE UIColor *defaultColor;

///间距
@property (assign, nonatomic) IBInspectable CGFloat spacing;
///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat lineWidth;



//是否选中
@property (assign, nonatomic) IBInspectable BOOL isSeleted;

@end

IB_DESIGNABLE
@interface QXRoundRectLabel : UILabel

///边框颜色
@property (strong, nonatomic) IBInspectable UIColor *borderColor;

///边框宽度
@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

///设置圆角
@property (assign, nonatomic) IBInspectable CGFloat cornerRadius;

@end



IB_DESIGNABLE
@interface QXStretchableImageView : UIImageView


///水平拉伸
@property (assign, nonatomic) IBInspectable NSInteger leftCapWidth;

///垂直拉伸
@property (assign, nonatomic) IBInspectable NSInteger topCapHeight;

@end


IB_DESIGNABLE
@interface QXDashedLine : UIView

/// 虚线厚度
@property (assign, nonatomic) IBInspectable CGFloat thickness;

/// 密集程度 越大则越长，越小越短
@property (assign, nonatomic) IBInspectable CGFloat intensive;

/// 边框颜色
@property (strong, nonatomic) IBInspectable UIColor *lineColor;

/// 是否是纵向
@property (assign, nonatomic) IBInspectable BOOL isVertical;

@end
